from sklearn.preprocessing import StandardScaler

import numpy as np

temp = np.array([1, 2, 3, 5, 5]).reshape(-1, 1)
print(temp)

scaler = StandardScaler()
scaler.fit(temp)

print(scaler.mean_)
print(scaler.var_)

temp = scaler.transform(temp)
print(temp)

data = np.array([1, 2, 3, 5, 50001]).reshape(-1, 1)
print(data)

scaler.fit(data)
print(scaler.mean_)
print(scaler.var_)
data = scaler.transform(data)
print(data)